package com.ec.rs.domain.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ec.rs.enums.RequestStatus;
import com.ec.rs.enums.RequestType;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@Builder
@TableName("check_in_out_requests")
public class CheckInOutRequest {
    @TableId(type = IdType.AUTO)
    private Long id;
    private Long elderlyUserId;
    private RequestType requestType; // check_in, check_out
    private RequestStatus status; // pending, approved, rejected
    private Integer approvedByAdminId;
    private String notes;
    private LocalDateTime createdAt;
}